-- GENERATED SPELL FOR [Dark Iron Tunneler] --


function spell0_1053(pUnit, Event) --@Defensive Stance,Self--
pUnit:FullCastSpellOnTarget(7164,pUnit)
pUnit:RegisterEvent('Sorts_1053', 627, 1)
end

function spell1_1053(pUnit, Event) --@Gift of Ragnaros,Self--
pUnit:FullCastSpellOnTarget(7891,pUnit)
pUnit:RegisterEvent('Sorts_1053', 547, 1)
end

function spell2_1053(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(11971,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1053', 30256, 1)
end

function Sorts_1053(pUnit, Event)
local choix_sorts_1053 = math.random(0, 2)
if choix_sorts_1053 == 0 then
pUnit:RegisterEvent('spell0_1053', 1, 1)
end
if choix_sorts_1053 == 1 then
pUnit:RegisterEvent('spell1_1053', 1, 1)
end
if choix_sorts_1053 == 2 then
pUnit:RegisterEvent('spell2_1053', 1, 1)
end
end

function mob1053_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1053', math.random(1500, 3000), 1)
end

function mob1053_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1053_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1053_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1053, 1, 'mob1053_Action')
RegisterUnitEvent(1053, 2, 'mob1053_Leave')
RegisterUnitEvent(1053, 3, 'mob1053_Kill')
RegisterUnitEvent(1053, 4, 'mob1053_Die')
